package com.boot.web.exception;

import com.boot.web.http.HttpModel;
import org.springframework.http.ResponseEntity;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 各模块全局异常处理，适用于微服务
 * @date 2019/10/2 15:10
 **/

public interface ModuleExceptionHandler {

    boolean support(Exception e);

    int order();

    ResponseEntity<HttpModel<Object>> handle(Exception e);
}
